#!/usr/bin/python
# -*- coding: utf-8 -*-

import datetime
from websocket import create_connection

def clean_not_active_connection():
    ws = create_connection("ws://p2p0.reconova.com:3000/")
    ws.send('{"type":"clean-not-active-users","payload":"", "from":""}')
    ret = ws.recv()
    ws.close()
    print('clean_not_active_connection: ' + datetime.datetime.now().isoformat() + '\n' + ret)


if __name__ == '__main__':
    clean_not_active_connection()
